package com.ktg.mapper;


import com.ktg.ktgcommon.domain.user.SysRole;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface RoleMapper {
    @Select("select * from sys_role where id = (select role_id from sys_user where user_id = #{userId})")
    List<SysRole> selectByUserId(Integer userId);
}
